import request from '@/utils/request'

// 查询咨询类别列表
export function getTypeList() {
  return request({
    url: '/api/askType/list',
    method: 'get'
  })
}

// 查询咨询类别列表
export function listAskType(query) {
  return request({
    url: '/system/askType/list',
    method: 'get',
    params: query
  })
}

// 查询咨询类别详细
export function getAskType(id) {
  return request({
    url: '/system/askType/' + id,
    method: 'get'
  })
}

// 新增咨询类别
export function addAskType(data) {
  return request({
    url: '/system/askType',
    method: 'post',
    data: data
  })
}

// 修改咨询类别
export function updateAskType(data) {
  return request({
    url: '/system/askType',
    method: 'put',
    data: data
  })
}

// 删除咨询类别
export function delAskType(id) {
  return request({
    url: '/system/askType/' + id,
    method: 'delete'
  })
}
